package com.hgkx.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Mail {
    //发件人邮箱
    private String from="1845036634@qq.com";

    private String replyTo;

    //收件人邮箱
    private String[] to={"1845036634@qq.com"};

    private String[] cc;

    private String[] bcc;

    //发送时间
    private Date sentDate;

    //标题
    private String subject;

    //文本
    private String text;

    //用作多文本
    private Map map;

    public void setTo(String... to) {
        this.to = to;
    }
}
